<template>
	<view class="mainpadding">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				type: "",
				text: "",
				content: `
									<p>露从今夜白，月是故乡明</p>
									<img src="https://cdn.uviewui.com/uview/swiper/2.jpg" />
								`
			}
		},
		onLoad(options) {
			this.type = options.id
			let text = ""
			if (this.type == 1) {
				this.text = "用户协议"
			} else if (this.type == 2) {
				this.text = "关于我们"
			} else if (this.type == 3) {
				this.text = "隐私协议"
			}
			uni.setNavigationBarTitle({
				title: this.text
			});
		},
		methods: {

		}
	}
</script>

<style>

</style>